package com.jf.springcloud.service;

import com.jf.springcloud.util.Msg;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2025-02-28
 * Time:16:37
 */
@Component
public class MemberFallbackService implements MemberService{
    @Override
    public Msg getMember(Integer id) {
        return Msg.failed(500, "服务熔断");
    }

    @Override
    public Msg getMemberWait(Integer id) {
        return Msg.failed(500, "fallback");
    }
}
